package com.haierCamera.customapplication.di;

import com.haierCamera.customapplication.utils.ViewModelFactory;

import androidx.lifecycle.ViewModelProvider;
import dagger.Binds;
import dagger.Module;

/**
 * @author yawei
 * @data on 2018/7/16 下午4:09
 * @email zyawei@live.com
 */
@Module
public abstract class ViewModelModule {
    @Binds
    abstract ViewModelProvider.Factory provideViewModelFactory(ViewModelFactory viewModelFactory);
//
//    @Binds
//    @IntoMap
//    @ViewModelKey(MainViewModel.class)
//    abstract ViewModel mainViewModel(MainViewModel viewModel);

}
